<template>
  <div class="box">
    <div class="logo">
      <!-- <img  src="../../assets/logo.png" alt=""> -->
    </div>
    <div class="login">
      <div class="login-header">
        <h1 class="login-header-top">登录</h1>
      </div>
      <form class="from">
        <input class="input-uname" placeholder="账号/邮箱" type="text" />
        <i class="iconfont iconfont-uname">&#xe615;</i>
        <input class="input-pasw" placeholder="密码" type="text" />
        <i class="iconfont iconfont-pasw">&#xe621;</i>
      </form>
      <div class="button">
        <button class="btn">登 录</button>
      </div>
      <div class="login-footer">
        <div class="login-footer-left">
          <p>忘记密码</p>
        </div>
        <div class="login-footer-right">
          <router-link to="/register" name="register">
            <a href="javascript:;">立即注册</a>
          </router-link>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style>
* {
  padding: 0;
  margin: 0;
}
.box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(./img/denglu.jpg) no-repeat;
  background-size: 100% 100%;
}
.login {
  margin: 100px auto;
  width: 325px;
  height: 420px;
  /* margin: 100px auto; */
  border: 2px solid #5897aa;
  border-radius: 10px;
  box-shadow: 0px 0px 7px 5px #c1c1c1;
  background-color: #474747;
}
.login-header {
  height: 55px;
  color: #019d98;
}
.login-header-top {
  margin: 10px 25px;
  font-weight: 700;
}
.from {
  position: relative;
  left: 0;
  top: 0;
}
.input-uname,
.input-pasw {
  width: 223px;
  height: 41px;
  border: 2px solid #ccc;
  border-radius: 15px;
  padding: 0 30px;
  background: #dcdcdc;
  font-size: 16px;
}
.input-uname {
  margin: 2px 0 0 27px;
}
.input-pasw {
  margin: 27px 0 0 27px;
}
.iconfont-uname {
  position: absolute;
  left: 36px;
  top: 16px;
}
.iconfont-pasw {
  position: absolute;
  left: 36px;
  top: 88px;
}

.button {
  width: 100%;
  height: 106px;
}
.btn {
  width: 285px;
  height: 50px;
  line-height: 40px;
  background: #579eb2;
  border: 2px solid #029d97;
  border-radius: 10px;
  margin-left: 27px;
  margin-top: 53px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.login-footer {
  display: flex;
  flex-direction: column;
  width: 325px;
  height: 100px;
}
.login-footer-left {
  color: #ddd;
}
.login-footer-right a {
  float: right;
  padding-right: 27px;
  color: #579eb4;
}
.login-footer-left,
.login-footer-right {
  width: 92%;
  height: 50%;
  padding-left: 27px;
  padding-top: 20px;
  font-weight: 700;
}
</style>
